package xaj.puiatti.ast;

import polyglot.lex.Identifier;
import polyglot.util.CodeWriter;
import polyglot.util.Position;
import polyglot.visit.PrettyPrinter;


public class Last_c extends BlockRule_c implements Last {
    
	private Identifier id1;
	
	public Last_c(Position pos, Identifier id1) {
        super(pos);
        this.id1 = id1;
	}

    public Identifier getIdent1() {
        return id1;
    }

    public void prettyPrint(CodeWriter w, PrettyPrinter pp) {
        w.begin(0);
        w.write(" last( " + id1.getIdentifier() + " );");

	}
}
